#ifndef MYTIMER_H
#define MYTIMER_H

#include <QObject>
#include <QTime>
#include <QTimer>
class MyTimer : public QObject {
    Q_OBJECT
public:
    explicit MyTimer( QObject* parent = nullptr );
    void start( const int& ms );
    void    stop();
    QString getTimeStr();

private:
    QTimer* timer;
    QTime*  time;
    int     timing_cycle = 0;

signals:
public slots:
    void updateTime();
};

#endif  // MYTIMER_H
